﻿
@{
    ViewBag.Title = "ReceiptServiceEvaluationsDataView";
}

<style type="text/css">
    .return {
        width: 80px;
        position: fixed;
        right: 100px;
        top: 400px;
        z-index: 100;
    }
    #ReceiptServiceEvaluationsForm {
        background: white;
        padding-left: 7%;
        padding-right: 7%;
        padding-bottom: 2%;
        padding-top: 2%;
    }

    .table, .table > tbody > tr > td {
        border: 1px solid;
        font-size: 15px;
        vertical-align: middle;
    }

    .page_title {
        width: 100%;
        height: 55px;
        color: #000;
        font-size: 25px;
        line-height: 55px;
        text-align: center;
        font-weight: 700;
    }

    .table_number {
        color: #000;
        font-size: 18px;
    }

    .td_menu {
        font-weight: bold;
    }

    .xia_none {
        width: 150px;
        border: none;
        border-bottom: 1px solid;
        outline: none;
    }

    .border_none {
        border: none;
        outline: none;
        width: 100%;
    }
</style>
<a class="btn btn-default return" href="javascript: history.go(-1);">返&nbsp;&nbsp;回</a>
<form action="/As/SubmitReceiptServiceEvaluations" method="post" id="ReceiptServiceEvaluationsForm">
    <div class="page_title">送达回证</div>
    <div class="table_number">
        表格编号：@ViewBag.TableNumber
    </div>
    <table class="receiptServiceEvaluations_talbe table">
        <tr>
            <td>送达文书机构</td>
            <td>
                @ViewBag.Rece.AmanuensisInstitution
            </td>
            <td>受送达人</td>
            <td>
                @ViewBag.Rece.ManuensisPeople
            </td>
        </tr>
        <tr>
            <td>其他资料</td>
            <td>
                @ViewBag.Rece.OtherData
            </td>
            <td>文书份数</td>
            <td>
                @ViewBag.Rece.InstitutionNumber 份
            </td>
        </tr>
        @{
            if (ViewBag.Rece.ReceiptMode == "自取")
            {
                <tr>
                    <td colspan="4">
                        送达方式：@ViewBag.Rece.ReceiptMode
                    </td>
                </tr>
                <tr>
                    <td>以上文书经领取人核对无误</td>
                    <td>
                        签字：
                        <div>
                            @ViewBag.Rece.TakePeople
                        </div>
                    </td>
                    <td>领取时间</td>
                    <td>
                        @ViewBag.Rece.TabkeTime
                    </td>
                </tr>
                <tr>
                    <td>代领人与被代领人关系</td>
                    <td>
                        @ViewBag.Rece.RelationBoth
                    </td>
                    <td>代领人电话</td>
                    <td>
                        @ViewBag.Rece.RelationPhone
                    </td>
                </tr>
                <tr>
                    <td>送达人</td>
                    <td>
                        @ViewBag.Rece.AmanuensisPeople
                    </td>
                    <td>受送达人拒绝理由</td>
                    <td>
                        @ViewBag.Rece.ToRejectReason
                    </td>
                </tr>
            }
            else if (ViewBag.Rece.ReceiptMode == "邮寄")
            {
                <tr>
                    <td colspan="4">
                        送达方式：@ViewBag.Rece.ReceiptMode
                    </td>
                </tr>
                <tr>
                    <td>收件人签名</td>
                    <td>
                        @ViewBag.Rece.AddresseeSign
                    </td>
                    <td>收件时间</td>
                    <td>
                        @ViewBag.Rece.AddressDateTime
                    </td>
                </tr>
                <tr>
                    <td>送达回证寄回时间</td>
                    <td>
                        @ViewBag.Rece.BackTime
                    </td>
                    <td>经办人</td>
                    <td>
                        @ViewBag.Rece.Operator
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <div>收到邮寄鉴定文书后请尽快送达回证邮寄或拍照至本所！</div>
                        <br />
                        <div>
                            邮寄地址：
                            @ViewBag.Rece.MailAddress
                        </div>
                        <br />
                        邮编：
                        @ViewBag.Rece.PostCode
                        &nbsp;&nbsp;
                        联系人：
                        @ViewBag.Rece.Contact
                        &nbsp;&nbsp;
                        电话：
                        @ViewBag.Rece.Phone
                        &nbsp;&nbsp;
                        QQ：
                        @ViewBag.Rece.QQ
                    </td>
                </tr>
            }
            else
            {
                <tr>
                    <td colspan="4">
                        送达方式：@ViewBag.Rece.ReceiptMode
                    </td>
                </tr>
                <tr>
                    <td>收件人</td>
                    <td>
                        @ViewBag.Rece.Addressee
                    </td>
                    <td>送达说明</td>
                    <td>
                        @ViewBag.Rece.AmanuensisExplanation
                    </td>
                </tr>
            }
        }
        
        
        
    </table>
    <div class="page_title">服务评价表</div>
    <table class="receiptServiceEvaluations_talbe table ">
                @*@{
            string[] menu = new string[] { "1、鉴定受理情况", "2、鉴定人员检查操作", "3、鉴定完成情况", "4、鉴定内容是否符合委托要求" };
            string[] con1 = new string[] { "礼貌、周到", "比较礼貌周到", "不够礼貌周到" };
            string[] con2 = new string[] { "规范", "比较规范", "不够规范" };
            string[] con3 = new string[] { "迅速、报告发送及时", "在规定时限内", "超出规定时限" };
            string[] con4 = new string[] { "全部符合", "部分符合", "不符合" };
            Dictionary<string, string[]> dic = new Dictionary<string, string[]>();
            dic.Add(menu[0], con1);
            dic.Add(menu[1], con2);
            dic.Add(menu[2], con3);
            dic.Add(menu[3], con4);
            foreach (var item in dic)
            {
                <tr>
                    <td colspan="3" class="td_menu">@item.Key</td>
                </tr>
                <tr>
                    @{
                        foreach (var item2 in item.Value)
                        {
                            bool b = false;
                            foreach (var item3 in ViewBag.pingjia)
                            {
                                if (item3 == item2)
                                {
                                    b = true;
                                    break;
                                }
                                else
                                {
                                    b = false;
                                }
                            }
                            <td>
                                <label>
                                    <input type="radio" @(b?"checked":"") />@item2
                                </label>
                            </td>
                        }
                    }
                </tr>
            }
            rece.ShroffCircs, rece.ShroffPeople, rece.ShroffFinish, rece.ShroffContentOrRequire
        }*@
        <tr>
            <td colspan="2" class="td_menu">1、鉴定受理情况</td>
            <td colspan="2" class="td_menu">@ViewBag.Rece.ShroffCircs</td>
        </tr>
        <tr>
            <td colspan="2" class="td_menu">2、鉴定人员检查操作</td>
            <td colspan="2" class="td_menu">@ViewBag.Rece.ShroffPeople</td>
        </tr>
        <tr>
            <td colspan="2" class="td_menu">3、鉴定完成情况</td>
            <td colspan="2" class="td_menu">@ViewBag.Rece.ShroffFinish</td>
        </tr>
        <tr>
            <td colspan="2" class="td_menu">4、鉴定内容是否符合委托要求</td>
            <td colspan="2" class="td_menu">@ViewBag.Rece.ShroffContentOrRequire</td>
        </tr>
        <tr>
            <td colspan="3">
                意见或建议：@ViewBag.Rece.Idea
            </td>
        </tr>
        <tr>
            <td colspan="3">
                监督电话：@ViewBag.Rece.SurveillancePhone
            </td>
        </tr>
    </table>
</form>

<script type="text/javascript">
    $(function () {
        var trs = $('.receiptServiceEvaluations_talbe tr');
        for (var i = 0; i < trs.length; i++) {
            $(trs[i]).children('td').eq(0).css({ width: "20%" });
            $(trs[i]).children('td').eq(1).css({ width: "30%" });
            $(trs[i]).children('td').eq(2).css({ width: "20%" });
            $(trs[i]).children('td').eq(3).css({ width: "30%" });
        }
    });
</script>
